package com.test.pattern.decorator;

/**
 * @ClassName: Garnish
 * @description: 装饰者类(抽象装饰角色)
 * @author: Mr du
 * @create: 2024-02-21 22:11
 */
public abstract class Garnish extends FastFood{

    //声明快餐类的成员变量
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood,float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
